﻿using System.Data;
using LibDataLayer;


namespace LibBusinessLayer
{
    public class BllToppicsMini
    {
        #region[Get-Data]
        public DataTable GetTopicsMini(string keywords)
        {
            return DalTopicsMini.GetTopicsMini(keywords);
        }
        public DataTable GetTopicsMiniEdit(int id)
        {
            return DalTopicsMini.GetTopicsMiniEdit(id);
        }
        public DataTable GetTopicsMiniFillterStatus(int IsActive)
        {
            return DalTopicsMini.GetTopicsMiniFillterStatus(IsActive);
        }
        public DataTable GetTopicsMiniFillterCategories(int Cid)
        {
            return DalTopicsMini.GetTopicsMiniFillterCategories(Cid);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOTopicsMini obj)
        {
            return DalTopicsMini.Insert(obj);
        }
        public static bool Update(DTOTopicsMini obj)
        {
            return DalTopicsMini.Update(obj);
        }
        public static bool Delete(DTOTopicsMini obj)
        {
            return DalTopicsMini.Delete(obj);
        }
        public static bool UpdateCheck(DTOTopicsMini obj)
        {
            return DalTopicsMini.UpdateCheck(obj);
        }
        public static bool UpdateNumView(DTOTopicsMini obj)
        {
            return DalTopicsMini.UpdateNumView(obj);
        }
        #endregion

        #region[Get-Data-HomePage]
        public DataTable GetTopicsMiniHomePage(string keywords, int Fmid)
        {
            return DalTopicsMini.GetTopicsMiniHomePage(keywords, Fmid);
        }
        #endregion
    }
}